package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 项目客户追踪实体 t_project_track
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_project_track")
public class ProjectTrack {

    @TableId(value = "id", type = IdType.AUTO)
    /** 主键ID */
    private Long id;

    @TableField("project_id")
    /** 项目ID */
    private Long projectId;

    @TableField("designer_id")
    /** 设计师ID */
    private Long designerId;

    @TableField("designer_name")
    /** 设计师name */
    private String designerName;

    @TableField("customer_id")
    /** 客户ID */
    private Long customerId;

    @TableField("customer_name")
    /** 客户name */
    private String customerName;

    @TableField("track_content")
    /** 追踪内容（长内容） */
    private String trackContent;

    @TableField("track_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /** 追踪时间（年月日时分秒） */
    private LocalDateTime trackTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /** 创建时间 */
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /** 更新时间 */
    private LocalDateTime updateTime;

    @TableLogic
    @TableField("deleted")
    /** 逻辑删除：0-未删除，1-已删除 */
    private Integer deleted;
}


